package com.yc.sole.erp.request;

import com.yc.sole.framework.validate.SaveGroup;
import com.yc.sole.framework.validate.UpdateGroup;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author yizuomin
 * @date 2024/3/11 20:31
 **/
@Data
public class ShipmentOrderReq {

    /**
     * 订单id
     */
    @NotNull(groups = {SaveGroup.class, UpdateGroup.class})
    private Long orderId;
    /**
     * 送货数量
     */
    @Min(value = 1, groups = {SaveGroup.class, UpdateGroup.class})
    @NotNull(groups = {SaveGroup.class, UpdateGroup.class})
    private Integer quantity;
    /**
     * 备注
     */
    @Length(max = 255, groups = {SaveGroup.class, UpdateGroup.class})
    private String remark;
}
